import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router";
import Layout from "../components/Layout.vue";
import farmeIn from "./frameIn";
import farmeOut from "./frameOut";
const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    component: Layout,
    redirect: "index", //重定向到首页
    children: [...farmeIn]
  },
  ...farmeOut
];

const router = createRouter({
  history: createWebHashHistory(),
  routes
});

export default router;
